﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace LGE
{
    public static class Rand
    {
        static Random r = new Random();
        public static bool NextBool() { return Next(2) == 0; }
        public static int Next(int a) { return r.Next(a); }
        public static int Next(int min, int max) { return r.Next(min, max); }
        public static float NextFloat()
        {
            return (float)r.NextDouble();
        }
        public static float NextFloat(float min, float max)
        {
            return min + (float)r.NextDouble() * (max - min);
        }
    }
}
